package com.jht.bletool2kotlin.activity.setting

import android.graphics.Color
import android.os.Bundle
import android.view.View
import com.jht.bletool2kotlin.BuildConfig
import com.jht.bletool2kotlin.R
import com.jht.bletool2kotlin.activity.BaseActivity
import kotlinx.android.synthetic.main.activity_setting.*
import kotlinx.android.synthetic.main.common_layout_toolbar.*

private const val TAG = "SettingActivity"

class SettingActivity : BaseActivity(),ISetting.UI,View.OnClickListener  {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        window.statusBarColor = Color.parseColor("#0082FC")

    }

    override fun getLayoutID(): Int {
        return R.layout.activity_setting
    }

    override fun initView() {
        iv_menu.visibility = View.GONE
        iv_back.visibility = View.VISIBLE
        iv_back.setOnClickListener(this)
        tv_title.visibility = View.GONE
        tv_title2.visibility = View.VISIBLE
        tv_setting_description.text = BuildConfig.VERSION_NAME
        progress_view.visibility = View.GONE
    }

    override fun onClick(v: View?) {
        when(v!!.id){
            R.id.iv_back -> finish()
        }
    }
}